<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}
.select_width {
	width: 130px;
}
</style>
<input type="hidden" name="organization/whether_is_gaoxin_value" value="<x:out select="$xmlData/data/organization/whether_is_gaoxin_value" />"/>
<input type="hidden" name="organization/whether_industrial_base_value" value="<x:out select="$xmlData/data/organization/whether_industrial_base_value" />"/>
<input type="hidden" name="organization/whether_is_province_value" value="<x:out select="$xmlData/data/organization/whether_is_province_value" />"/>
<input type="hidden" name="proposal/contact_psn_tel" value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel"/>"/>
<input type="hidden" name="proposal/contact_psn_email" value="<x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email"/>"/>


<table class="t_css table01" id="table_1" width="100%" border="0" cellpadding="0" id="basicInfo" cellspacing="1">
	<col style="width: 25%" />
	<col style="width: 12%" />
	<col style="width: 12%" />
	<col style="width: 25%" />
	<col style="width: 26%" />
	<tr>
		<td colspan="5" class="t_bar2"><span class="color_red">*</span>项目基本情況</td>
	</tr>
	<tr>
		<td align="right" >机构名称：</td>
		<td colspan="4"><span id="zh_title" name="proposal/zh_title" label="机构名称"
			style="width:80%;">科技中介服务机构 </span>
			
		</td> 
	</tr>
	
	<tr>
		<td align="right">归口管理部门：</td>
		<td colspan="2">
		    <c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set> 
		    <cpt:tree id="recomend_org" key="recomend_org_gk" cacheable="false" className="hn_iuput_kuang required selectWidth3" readonly="true" value="${recomend_org}" label="归口管理部门" 
		              showPattern="all" shieldPattern="0" onClick="initTreeValue2"></cpt:tree> 
		    <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" >
		    <input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
		<td align="right" >申报时间：</td>
		<td>
			<c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set>
			<c:if test="${empty submit_date }">
				<c:set var="submit_date">${sercverSysDate1}</c:set>
			</c:if>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date " label="申报时间"></cpt:date>
		</td>
	</tr>

	<tr>
		
		<td  align="right" nowrap >注册所在地：</td>
		<td nowrap colspan="4">
			<c:set var="area_different"><x:out select="$xmlData/data/proposal/area_different_value" /></c:set>
			<cpt:checkbox key="area_different" tagType="radio" name="area_different" repeatColumn="5"  ></cpt:checkbox>
			<input type="hidden" id="area_different_value" name="proposal/area_different_value" class="required" value="${area_different}" label="注册所在地">
			<input type="hidden" name="proposal/area_different_name" value="<x:out select="$xmlData/data/proposal/area_different_name" />">
		</td>
		<!-- <td align="right">技术领域：</td> -->
		<%-- <td colspan="1">
			<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
		<c:set var="sub"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
		<c:set var="researcharea_all_value"><x:out select="$xmlData/data/proposal/researcharea_all_value" /></c:set>
		<c:set var="researcharea">{'id':'<x:out select="$xmlData/data/proposal/researcharea_all_value" />','name':'<x:out select="$xmlData/data/proposal/researcharea_all_name" />'}</c:set>
		<c:if test="${empty researcharea_all_value }"><c:set var="researcharea">{'id':'<x:out select="$xmlData/data/proposal/researcharea_value" />','name':'<x:out select="$xmlData/data/proposal/researcharea_name" />'}</c:set></c:if>
		<cpt:tree key="researcharea1" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${researcharea}"  label="技术领域"
		id="researcharea" onlyChooseLeaf="true" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="localInitTreeValue2" sqlParamVal="{grant_code:${sub},stat_year:${param.statYear }}"/>
		<input id="researcharea_value" type="hidden" name="proposal/researcharea_value" class="required" label="技术领域" value="<x:out select="$xmlData/data/proposal/researcharea_value" />"/>
		<input id="researcharea_name" type="hidden" name="proposal/researcharea_name"  value="<x:out select="$xmlData/data/proposal/researcharea_name" />"/>
		<input id="researcharea_all_name" type="hidden" name="proposal/researcharea_all_name"  value="<x:out select="$xmlData/data/proposal/researcharea_all_name" />"/>
		<input  type="hidden" id="researcharea_all_value" name="proposal/researcharea_all_value"  value="<x:out select="$xmlData/data/proposal/researcharea_all_value" />"/>
		<input id="domain_value" type="hidden" name="proposal/domain_value"  value="<x:out select="$xmlData/data/proposal/domain_value" />"/>
        <input id="domain_name" type="hidden" name="proposal/domain_name"  value="<x:out select="$xmlData/data/proposal/domain_name" />"/>
        <input id="topic_value" type="hidden" name="proposal/topic_value"  value="<x:out select="$xmlData/data/proposal/topic_value" />"/>
        <input id="topic_name" type="hidden" name="proposal/topic_name"  value="<x:out select="$xmlData/data/proposal/topic_name" />"/>
	
		</td> --%>
		<%-- <td>
			<input id="researcharea_name" type="text" name="proposal/researcharea_name"  label="技术领域" class="input_css required maxlength:100"
			value="<x:out select="$xmlData/data/proposal/researcharea_name" />"/>
		</td>
		<td  align="right">科技部学科代码：</td>
		 <td  colspan="1">
		 	<span name="proposal/subject_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/subject_name" /></span>
		 </td> --%>
	</tr>
	<%--  <tr>
		<td  align="right" nowrap  >机构类别：</td>
		<td nowrap colspan="4">
			<c:set var="two_categary"><x:out select="$xmlData/data/proposal/two_categary_value" /></c:set>
			<cpt:checkbox key="two_categary" tagType="radio" name="two_categary" repeatColumn="5" onclick = sure()></cpt:checkbox>
			<input type="hidden" id="two_categary_value" name="proposal/two_categary_value" class="required" value="${two_categary}" label="机构类别">
			<input type="hidden" name="proposal/two_categary_name" value="<x:out select="$xmlData/data/proposal/two_categary_name" />">
		</td>
	</tr>  --%>
	<tr>
		<td  align="right" nowrap  >机构类别：</td>
		<td nowrap colspan="4">
			<c:set var="two_categary"><x:out select="$xmlData/data/proposal/two_categary_value" /></c:set>
			<cpt:checkbox key="two_categary" tagType="radio" name="two_categary" repeatColumn="5"  ></cpt:checkbox>
			<input type="hidden" id="two_categary_value" name="proposal/two_categary_value" class="required" value="${two_categary}" label="机构类别">
			<input type="hidden" name="proposal/two_categary_name" value="<x:out select="$xmlData/data/proposal/two_categary_name" />">
		</td>
	</tr>
	<tr>
		<td  align="right" nowrap  >机构性质：</td>
		<td nowrap colspan="4">
			<c:set var="institutional_nature"><x:out select="$xmlData/data/proposal/institutional_nature_value" /></c:set>
			<cpt:checkbox key="institutional_nature" tagType="radio" name="institutional_nature" repeatColumn="5"  ></cpt:checkbox>
			<input type="hidden" id="institutional_nature_value" name="proposal/institutional_nature_value" class="required" value="${institutional_nature}" label="机构性质">
			<input type="hidden" name="proposal/institutional_nature_name" value="<x:out select="$xmlData/data/proposal/institutional_nature_name" />">
		</td>
	</tr>
	
	<tr>
		<td align="right" >法定代表人/</br>单位负责人：</td>
		<td align="center" >姓名：</td>
		<td align="center" >
            <input  type="text" label="法定代表人/单位负责人的姓名" name="proposal/response_cname" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/response_cname" />">
		</td>
		<td align="right" >手机：</td>
		<td><input type="text" id="" name="proposal/response_phone" label="手机" class="input_css mobile required " maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);"  style="" value="<x:out select="$xmlData/data/proposal/response_phone" />"/></td>
	</tr>
	
	<tr>
		<td align="right">联系人姓名：</td>
		<td colspan="2">
            <input  type="text" label="联系人姓名" name="proposal/contact_psn_cname" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />">
		</td>
		<td align="right" >联系人电话：</td>
		<td><input type="text" id="" name="proposal/contact_psn_tel" label="联系人电话" class="input_css tel required " maxlength="20"  style="" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/></td>
	</tr>
	<tr>
	
		<!-- <td align="right">传真：</td>
				<td align="left">
					<input id="fax2" name="fax2"  maxlength="50" label="联系人传真" type="text" style="width: 80%;" class="required input_css notdisabled" />
				</td> -->
	
		<td align="right">联系人传真：</td>
        <td   colspan="2">
            <input type="text" label="联系人传真" name="proposal/contacts_facsimile"
                class="required input_css notdisabled "  maxlength="20" 
                value="<x:out select="$xmlData/data/proposal/contacts_facsimile" />">
        </td>
		<td align="right" >联系人手机：</td>
		<td><input type="text" id="" name="proposal/contact_psn_phone" label="联系人手机" class="input_css mobile required " maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);" style="" value="<x:out select="$xmlData/data/proposal/contact_psn_phone" />"/></td>
	</tr>
	
	<tr>
		<td align="right" >项目开始日期：</td>
		<td   colspan="2">
			<c:set var="start_date">
				<x:out select="$xmlData/data/proposal/start_date" />
			</c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className=" required date dateCompare:end_date " label="项目开始日期"></cpt:date>
		</td>
		<td align="right" >项目结束日期：</td>
		<td>
			<c:set var="end_date">
				<x:out select="$xmlData/data/proposal/end_date" />
			</c:set>
			<cpt:date id="end_date" name="proposal/end_date" value="${end_date}" className=" required date" label="项目结束日期"></cpt:date>
		</td>
	</tr>
	
	<tr>
		
		<td align="right" > 项目申请金额<br/>（万元）：</td>
		<td   colspan="2"><input id="project_money" name="proposal/project_money" label="项目申请金额" onfocus="InitInput.setNumber(this,9,4,2);" type="text" 
		    class="input_css required maxlength:100" value="<x:out select="$xmlData/data/proposal/project_money" />"style="text-align: right;" />
		</td>
		<td align="right">项目报审级次（省补助<br/>资金拨付所属财政局）：</td>
	    <td>
			<c:set var="sub_step">{'id':'<x:out select="$xmlData/data/proposal/sub_step_value" />','name':'<x:out select="$xmlData/data/proposal/sub_step_name" />'}</c:set>
          	<cpt:tree key="sub_step" cacheable="false" className="hn_iuput_kuang  " readonly="true" value="${sub_step}"  label="项目报审级次" id="sub_step" onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
	        <input id="sub_step_value" type="hidden" name="proposal/sub_step_value" class="required" label="项目报审级次" value="<x:out select="$xmlData/data/proposal/sub_step_value" />"/>
            <input id="sub_step_name" type="hidden" name="proposal/sub_step_name"  value="<x:out select="$xmlData/data/proposal/sub_step_name" />"/>
		</td>	
	</tr>
	
	<tr>
		<%-- <c:set var="statYear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set> --%>
		<td align="right">${param.statYear-1}年业务收入<br/>（万元）：</td>
		<td colspan="4"><input id="get_money" name="proposal/get_money" label="${param.statYear-1}年业务收入" onfocus="InitInput.setNumber(this,9,4,2);" type="text" 
		    class="input_css required maxlength:100" value="<x:out select="$xmlData/data/proposal/get_money" />"style="text-align: right;" />
		</td>
		
	</tr>
	
	
	
	<tr>
		<td  align="right"  colspan="1" >主要业务内容(按业务收入大<br/>小排序)（300字内）：</td>
		<td colspan="4">
	    	<textarea name="proposal/project_details" style="width:98%" class="input_textarea required maxlength:300"  label="业务内容"   rows=10 cols=60><x:out select="$xmlData/data/proposal/project_details" /></textarea>
			<input type="hidden" name="proposal/project_details_hidden" id="project/tech_assign_hidden" value="<x:out select="$xmlData/data/proposal/project_details_hidden" />"/>
	    </td>
	</tr>
	<tr class="li_1">
		<td align="right" >项目负责人姓名：</td>
		<td  colspan="2">
			<span name="zh_persons/zh_person/basic_info/zh_name"> 
			    	<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" />
		    </span> 
		</td>
		<td align="right">电子邮件：</td>
		<td>
			<span name="zh_persons/zh_person/contact/email"> 
			    <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" />
		    </span> 
		</td>
	</tr>
	<tr class="li_1" >
		<td align="right">手机：</td>
		<td colspan="2">
			<span name="zh_persons/zh_person/contact/mobile"> 
			   <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />
		    </span>
		</td>
		<td align="right">联系电话：</td>
		<td >
			<span name="zh_persons/zh_person/contact/tel_work"> 
			    	<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />
		    	</span> 
		</td>
	</tr>
</table>
<br />
<script type="text/javascript">
$(function(){
	 $("#table_1").find("tr:even").addClass("li_1");
	 $("#table_1").find("tr:odd").addClass("li_2");
});


 function initTreeValueExt(treeId, treeNode) {
	 	if ((treeNode && treeNode.isParent)) {
	 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
	 		$("#" + treeId).val("");
	 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
	 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
	 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
	 		return false;
	 	}
	 	var str = treeNode.name;
	 	var obj = treeNode.parentNode;
	 	while (obj != null) {
	 		str = obj.name + "-" + str;
	 		obj = obj.parentNode;
	 	}
	 	
	 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
	 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
	 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	 }
 function localInitTreeValue2(treeId, treeNode) {
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		if (!(treeNode && (treeNode.level > 1 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")+"请选择其子级!");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_name'],[id$='" + treeId + "_all_name']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_value'],[id$='" + treeId + "_all_value']").val("");
			return false;
		}
		var showName = "";
		var parentId="";
		if (obj != null) {
			str2 = obj.name + "-" + str;
			if(treeNode.level==2){
				str3 = obj.parentNode.name + "-" + str2;
				frobj = obj.parentNode;
				$("#" + treeId).parents("tr").find("[name$='topic_value']").val(treeNode.id);
				$("#" + treeId).parents("tr").find("[name$='topic_name']").val(treeNode.name);
				$("#" + treeId).parents("tr").find("[name$='domain_value']").val(obj.id);
				$("#" + treeId).parents("tr").find("[name$='domain_name']").val(str2);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(frobj.id);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(frobj.name);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_name'],[id$='" + treeId + "_all_name']").val(str3);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_value'],[id$='" + treeId + "_all_value']").val(frobj.id);
			}else{
				$("#" + treeId).parents("tr").find("[name$='domain_value']").val(treeNode.id);
				$("#" + treeId).parents("tr").find("[name$='domain_name']").val(treeNode.name);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(obj.id);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(obj.name);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_name'],[id$='" + treeId + "_all_name']").val(str2);
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_value'],[id$='" + treeId + "_all_value']").val(obj.id);
			}
		}else{
			$("#"+treeId).parents("tr").find("[name$='domain_value']").val("");
		    $("#"+treeId).parents("tr").find("[name$='domain_name']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_name'],[id$='" + treeId + "_all_name']").val(str);
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_all_value'],[id$='" + treeId + "_all_value']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
		}
		$("#" + treeId).val(str);
}
</script>
